package com.custom.base.base;

import org.greenrobot.eventbus.EventBus;

public class SDEventManager {
    public static final int TAG_INT_EMPTY = -999;

    public SDEventManager() {
    }

    public static void register(Object subscriber) {
        EventBus.getDefault().register(subscriber);
    }

    public static void unregister(Object subscriber) {
        EventBus.getDefault().unregister(subscriber);
    }

    public static void post(Object event) {
        EventBus.getDefault().post(event);
    }

    /** @deprecated */
    @Deprecated
    public static void post(int tagInt) {
        post((Object)(new SDBaseEvent((Object)null, tagInt)));
    }

    public static void post(String tagString) {
        post((Object)(new SDBaseEvent((Object)null, tagString)));
    }

    /** @deprecated */
    @Deprecated
    public static void post(Object data, int tagInt) {
        post((Object)(new SDBaseEvent(data, tagInt)));
    }

    public static void post(Object data, String tagString) {
        post((Object)(new SDBaseEvent(data, tagString)));
    }

    /** @deprecated */
    @Deprecated
    public static void post(Object data, int tagInt, String tagString) {
        post((Object)(new SDBaseEvent(data, tagInt, tagString)));
    }

}
